<script>
	export default {
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			this.$store.commit("init", this.$socket)
			uni.onTabBarMidButtonTap(() => {
				const subNVue = uni.getSubNVueById('mid_pop')
				// // 打开 nvue 子窗体  
				subNVue.show('slide-in-bottom', 300, function() {
					// 打开后进行一些操作...  
					uni.$once("post", () => {
						subNVue.hide()
						uni.navigateTo({
							url: "/pages/post_edit/post_edit",
						})
					})
				});
			})
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	@import "@/uni_modules/uview-ui/index.scss";
	@import '@/static/iconfont.css';

	// 设置整个项目的背景色
	page {
		// font-family: 'ziti';
		font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
		background-color: #FFFFFF;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
